package com.joker.userExam.service;

import com.joker.userExam.model.SubjectOneQuestion;
import com.joker.userExam.utils.ResultUtil;

/**
 * @author 李杰
 * @date 2021/5/6 - 21:42
 */

public interface ISubjectOneQuestionManage {

    /**
     * 增加一条新题目
     * @param oneQuestion
     * @return
     */
    ResultUtil saveSubjectOneQuestion (SubjectOneQuestion oneQuestion);

    /**
     * 根据id删除一个题目
     * @param id
     * @return
     */
    ResultUtil deleteSubjectOneQuestion (Integer id);

    /**
     * 根据id更新题目
     * @param oneQuestion
     * @return
     */
    ResultUtil updateSubjectOneQuestion (SubjectOneQuestion oneQuestion);

    /**
     * 查询全部试题
     * @return
     */
    ResultUtil queryAllSubjectOneQuestion();

    /**
     * 根据传入的条件查询
     * @param oneQuestion
     * @return
     */
    ResultUtil querySubjectOneQuestionByCondition(SubjectOneQuestion oneQuestion);
}
